//
//  LBHTTPResponse.m
//  LBNetworking
//
//  Created by WuShiHai on 19/5/30.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import "LBHTTPResponse.h"

@implementation LBHTTPResponse

+ (LBHTTPResponseError)errorServerCode:(NSInteger)code {
    if (code == 301 || code == 302 || code == 303 || code == 304 || code == 305 || code == 306) {
        return LBHTTPResponseErrorServer;
    }else if (code == 400 || code == 401 || code == 402 || code == 403 || code == 404 || code == 407 || code == 415) {
        return LBHTTPResponseErrorServer;
    }else if (code == 500 || code == 501 || code == 502 || code == 503) {
        return LBHTTPResponseErrorServer;
    }
    return 0;
}

@end
